﻿<Application x:Class="PodThrower.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:tb="clr-namespace:Hardcodet.Wpf.TaskbarNotification;assembly=Hardcodet.Wpf.TaskbarNotification"
	xmlns:v="clr-namespace:PodThrower.View"
    StartupUri="MainWindow.xaml"
	>
    <Application.Resources>
		<ResourceDictionary>
			<tb:TaskbarIcon
				x:Key="NotifyIcon"
				IconSource="/Images/Tray.ico"
				ToolTipText="Pod Thrower"
				DoubleClickCommand="{Binding EditCommand}"
				PopupActivation="All"
			>
				<tb:TaskbarIcon.TrayToolTip>
					<Border Background="White" BorderBrush="Orange" BorderThickness="2" CornerRadius="4" Opacity="0.8" Width="160" Height="40">
						<TextBlock Text="{Binding Message}" HorizontalAlignment="Center" VerticalAlignment="Center" />
					</Border>
				</tb:TaskbarIcon.TrayToolTip>
				<tb:TaskbarIcon.TrayPopup>
					<v:DocumentView />
				</tb:TaskbarIcon.TrayPopup>
			</tb:TaskbarIcon>
		</ResourceDictionary>
	</Application.Resources>
</Application>
